using System;
using System.Collections;
using System.Text;
using System.Collections.Generic;

using Microsoft.Practices.CompositeUI;

using LibrErian.Interfaces.Services;
using LibrErian.Model;

namespace LibrErian.Services
{
    [Service(typeof(IGenreService))]
    public class GenreService : ServiceBase, IGenreService
    {
        public IList GetGenres()
        {
            return DataManager.GetGenres();
        }

        public void Save(Genre genre)
        {
            DataManager.SaveOrUpdate(genre);
        }

        public void Delete(Genre genre)
        {
            DataManager.Delete(genre);
        }
    }
}
